package com.linzm.template;

import java.util.concurrent.TimeUnit;

/**
 * @Author zimingl
 * @Date 2023/5/4 22:36
 * @Description: 百事
 */
public class Pepsi extends AbstractDrinksTemplate {
    @Override
    protected void printName() {
        try {
            TimeUnit.MILLISECONDS.sleep(500);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println(name);
    }

    @Override
    protected void printPrice() {
        System.out.println(price);
    }

    @Override
    protected void printCount() {
        System.out.println(count);
    }
}
